<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:th="http://thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>付款成功页面</title>
    <link rel="stylesheet" type="text/css" th:href="@{/before/AmazeUI-2.4.2/assets/css/amazeui.css}"/>
    <link th:href="@{/before/AmazeUI-2.4.2/assets/css/admin.css}" rel="stylesheet" type="text/css">
    <link th:href="@{/before/basic/css/demo.css}" rel="stylesheet" type="text/css"/>
    <link th:href="@{/before/css/sustyle.css}" rel="stylesheet" type="text/css"/>
    <script type="text/javascript" th:src="@{/before/basic/js/jquery-1.7.min.js}"></script>
</head>

<body>


<!--顶部导航条 -->
<div class="am-container header">
    <ul class="message-l">
        <div class="topMessage">
            <div class="menu-hd">
                <a th:href="@{/user/details}" target="_top" class="h" style="color: orangered;">欢迎您,<span
                        th:text="${session.session_user.userName}"></span></a>
            </div>
        </div>
    </ul>
    <ul class="message-r">
        <div class="topMessage home">
            <div class="menu-hd"><a th:href="@{/page/return}" target="_top" class="h">商城首页</a></div>
        </div>
        <div class="topMessage my-shangcheng">
            <div class="menu-hd MyShangcheng"><a th:href="@{/before/person/index}" target="_top"><i
                    class="am-icon-user am-icon-fw"></i>个人中心</a></div>
        </div>
        <div class="topMessage mini-cart">
            <div class="menu-hd"><a id="mc-menu-hd" href="#" target="_top"><i
                    class="am-icon-shopping-cart  am-icon-fw"></i><span>购物车</span><strong id="J_MiniCartNum"
                                                                                          class="h">0</strong></a></div>
        </div>
        <div class="topMessage favorite">
            <div class="menu-hd"><a href="#" target="_top"><i class="am-icon-heart am-icon-fw"></i><span>收藏夹</span></a>

            </div>
        </div>
    </ul>

</div>

<!--悬浮搜索框-->

<div class="nav white">
    <div class="logo"><img th:src="@{/before/images/logo.png}"/></div>
    <div class="logoBig">
        <li><img th:src="@{/before/images/logobig.png}"/></li>
    </div>

    <div class="search-bar pr">
        <a name="index_none_header_sysc" href="#"></a>
        <form>
            <input id="searchInput" name="index_none_header_sysc" type="text" placeholder="搜索" autocomplete="off">
            <input id="ai-topsearch" class="submit" value="搜索" index="1" type="submit"></form>
    </div>
</div>

<div class="clear"></div>


<div class="take-delivery">
    <div class="status">
        <h2>确认付款</h2>
<!--        <div class="successInfo">-->
        <div>

<!--            <ul th:each="user:${user}">-->
<!--                <li>付款金额<em th:text="${sum}">¥</em></li>-->
<!--                <li>优惠券金额为<em th:text="${session.discount}">¥</em></li>-->
<!--                <li>配送费用为<em th:text="${session.peisong}">¥</em></li>-->
<!--                <div class="user-info">-->
<!--                    <p>收货人：<span th:text="${user.userName}"></span>></p>-->
<!--                    <p>联系电话：<span th:text="${user.phone}"></span></p>-->
<!--                    <p>收货地址：<span th:text="${user.address}"></span></p>-->
<!--                </div>-->
<!--                请认真核对您的收货信息，如有错误请联系客服-->
<!--            -->
<!--            -->
<!--            </ul>-->
                <ul th:each="user:${user}">
                    <li>付款金额<em th:text="${sum}">¥</em></li>
                    <li>优惠券金额为<em th:text="${session.discount}">¥</em></li>
                    <li>配送费用为<em th:text="${session.peisong}">¥</em></li>
                    <div class="user-info">
                        <p>收货人：<span th:text="${user.userName}"></span>></p>
                        <p>联系电话：<span th:text="${user.phone}"></span></p>
                        <p>收货地址：<span th:text="${user.address}"></span></p>
                    </div>
                    请认真核对您的收货信息，如有错误请联系客服
                </ul>
            <form th:action="@{/pay/goAlipay}" method="post">
                <input type="hidden" name="sum"class="form-control" th:value="${sum}" >
                <button type="submit" class="submit">去支付</button>
            </form>
            <div class="option">
                <span class="info">您可以</span>
                <a th:href="@{/before/person/order.html}" class="J_MakePoint">查看<span>已买到的宝贝</span></a>
                <a th:href="@{/before/person/orderinfo.html}" class="J_MakePoint">查看<span>交易详情</span></a>
            </div>
        </div>
    </div>
</div>


<div class="footer">
    <div class="footer-hd">
        <p>
            <a href="#">恒望科技</a>
            <b>|</b>
            <a href="#">商城首页</a>
            <b>|</b>
            <a href="#">支付宝</a>
            <b>|</b>
            <a href="#">物流</a>
        </p>
    </div>
    <div class="footer-bd">
        <p>
            <a href="#">关于恒望</a>
            <a href="#">合作伙伴</a>
            <a href="#">联系我们</a>
            <a href="#">网站地图</a>
            <em>© 2015-2025 Hengwang.com 版权所有</em>
        </p>
    </div>
</div>
<script>
    function gopay(sum) {

        var sum=$("#sum").text();
        window.location.href="/pay/goAlipay?sum="+sum;

    }
</script>

</body>
</html>
